﻿using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

namespace PasteLoggerBoard.usermodels
{
    /// <summary>
    /// 推送对象
    /// </summary>
    public class WebHooker : Entity<int>
    {
        /// <summary>
        /// WebHook名称 16
        /// </summary>
        [MaxLength(16)]
        public string Name { get; set; } = "";

        /// <summary>
        /// WebHook推送地址 512
        /// </summary>
        [MaxLength(512)]
        public string Url { get; set; } = "";

        /// <summary>
        /// 钉钉 企业微信 飞书 8 ding weixin feibook
        /// </summary>
        [MaxLength(8)]
        public string WebType { get; set; } = "";

        /// <summary>
        /// 状态
        /// </summary>
        public bool IsEnable { get; set; } = true;

    }
}
